import Vue from 'vue'
import Router from 'vue-router'
import login from '../login/login.vue'
import register from '../login/register.vue'
import ser from '../login/User.vue'
import lab from '../login/lable.vue'
import role from '../login/role.vue'
import addRow from '../login/addRow.vue'
import updateRole from '../login/updateRole.vue'
import permission from '../login/permission.vue'
import UpdatePermission from '../login/UpdatePermission.vue'
import AddPermission from '../login/AddPermission.vue'
import AddPer from '../login/AddPer.vue'
import assign from '../login/AssignPermissions.vue'
import updatePassword from '../login/updatePassword.vue'
import updateUser from '../login/updateUser.vue'
import LeftMenu from '../login/LeftMenu.vue'
import updateLeftMenu from '../login/UpdateLeftMenu.vue'
import addLeftMenu from '../login/AddLeftMenu.vue'
import insertLeftMenu from '../login/insertLeftMenu.vue'
import home from '../home/home.vue'
import bpmn from '../login/bpmnTest.vue'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/login',
    name: 'login',
    component: login
  }
    , {
      path: '/register',
      name: 'register',
      component: register
    }, {
      path: '/ser',
      name: 'ser',
      component: ser
    }, {
      path: '/lab',
      name: 'lab',
      component: lab
    }, {
      path: '/permission',
      name: 'permission',
      component: permission
    }, {
      path: '/role',
      name: 'role',
      component: role
    }, {
      path: '/addRow',
      name: 'addRow',
      component: addRow
    }, {
      path: '/updateRole',
      name: 'updateRole',
      component: updateRole
    }, {
      path: '/UpdatePermission',
      name: 'UpdatePermission',
      component: UpdatePermission
    }, {
      path: '/AddPermission',
      name: 'AddPermission',
      component: AddPermission
    }, {
      path: '/AddPer',
      name: 'AddPer',
      component: AddPer
    }, {
      path: '/assign',
      name: 'assign',
      component: assign
    }, {
      path: '/updatePassword',
      name: 'updatePassword',
      component: updatePassword
    }, {
      path: '/updateUser',
      name: 'updateUser',
      component: updateUser
    }, {
      path: '/home',
      name: 'home',
      component: home
    }, {
      path: '/LeftMenu',
      name: 'LeftMenu',
      component: LeftMenu
    }, {
      path: '/updateLeftMenu',
      name: 'updateLeftMenu',
      component: updateLeftMenu
    }, {
      path: '/addLeftMenu',
      name: 'addLeftMenu',
      component: addLeftMenu
    }, {
      path: '/insertLeftMenu',
      name: 'insertLeftMenu',
      component: insertLeftMenu
    }, {
      path: '/bpmn',
      name: 'bpmn',
      component: bpmn
    }
  ]
})
